package com.qiguliuxing.dts.common.type;

import lombok.RequiredArgsConstructor;

/**
 * 代理分享海报 枚举类型
 * 
 * @author qiguliuxing
 * @QQ 623659388
 * @since 1.0.0
 */
@RequiredArgsConstructor
public enum AgencyShareTypeEnum {

	// 商品海报
	GOODS_SHARE(1, "商品分享海报"),

	// 店铺海报
	BRAND_SHARE(2, "入驻品牌店铺分享海报"),

	// 团购海报
	GROUPON_SHARE(3, "团购分享海报");

	public final int type;
	public final String desc;

	public static AgencyShareTypeEnum getInstance(Integer type2) {
		if (type2 != null) {
			for (AgencyShareTypeEnum tmp : AgencyShareTypeEnum.values()) {
				if (tmp.type == type2.intValue()) {
					return tmp;
				}
			}
		}
		return null;
	}

}
